//
//  LWQSearchView.h
//  SanYiTeaching
//
//  Created by 李文强 on 2019/4/22.
//  Copyright © 2019 SanYi. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, SearchViewType)
{
    ImageLeft = 0,
    ImageRight = 1,
    ImageCenter = 2,
};

NS_ASSUME_NONNULL_BEGIN
typedef void(^KeyDownBlock)(NSString *keyStr);

@interface LWQSearchView : UIView<UITextFieldDelegate>
@property (nonatomic, assign) SearchViewType type;
@property (nonatomic, strong) UITextField *searchTF;
@property (nonatomic, strong) NSString *imageName;
@property (nonatomic, strong) UIView *backView;
@property (nonatomic, strong) KeyDownBlock block;
- (instancetype)initWithFrame:(CGRect)frame initWithType:(SearchViewType)type andImageName:(NSString *)imageName;
@end

NS_ASSUME_NONNULL_END
